﻿// ------------------------------------------------------------------------------
//  © 2008 OpenUpon™.  All rights reserved.
// ------------------------------------------------------------------------------
using System;
using Castle.ActiveRecord;

namespace CastUpon.Entities {
	[ActiveRecord]
	public class Comment : ActiveRecordBase<Comment> {
		private string author;
		private string contentEncoded;
		private DateTime dateCreated;
		private string email;
		private bool enabled;
		private int id;
		private string ipAddress;
		private Podcast podcast;
		private string website;

		[PrimaryKey]
		public int Id {
			get { return this.id; }
			set { this.id = value; }
		}

		[BelongsTo("PodcastId")]
		public Podcast Podcast {
			get { return this.podcast; }
			set { this.podcast = value; }
		}

		[Property]
		public string Author {
			get { return this.author; }
			set { this.author = value; }
		}

		[Property]
		public string Email {
			get { return this.email; }
			set { this.email = value; }
		}

		[Property]
		public string Website {
			get { return this.website; }
			set { this.website = value; }
		}

		[Property]
		public string ContentEncoded {
			get { return this.contentEncoded; }
			set { this.contentEncoded = value; }
		}

		[Property]
		public DateTime DateCreated {
			get { return this.dateCreated; }
			set { this.dateCreated = value; }
		}

		[Property]
		public string IpAddress {
			get { return this.ipAddress; }
			set { this.ipAddress = value; }
		}

		[Property]
		public bool Enabled {
			get { return this.enabled; }
			set { this.enabled = value; }
		}
	}
}